package com.dragon.modules.yuegou.entity.coupon;

import com.baomidou.mybatisplus.annotation.TableName;
import com.dragon.modules.yuegou.enums.OwnerType;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.time.LocalDateTime;

/**
 * 券包（会员券包，不冗余券包模板信息，请使用1+N模式查询）实体类<br>
 * 对应的表为：coup_coupon_package<br>
 * 
 * @author pbuilder generated
 * @date 2019-02-28 18:30:17
 * @company sgy
 * @version 2.0
 */
@TableName("coup_coupon_package")
@ApiModel(description = "券包（会员券包，不冗余券包模板信息，请使用1+N模式查询）")
public class CouponPackageEntity {

    /** 券包ID */
	@ApiModelProperty("券包ID")
	protected String id;

    /** 举]所有者类型(把券包交给会员之前的所有者) */
	@ApiModelProperty("举]所有者类型(把券包交给会员之前的所有者)")
	protected OwnerType ownerType;

    /** 集团ID */
	@ApiModelProperty("集团ID")
	protected String groupId;

    /** 商圈ID */
	@ApiModelProperty("商圈ID")
	protected String businessDistrictId;

    /** 商户ID */
	@ApiModelProperty("商户ID")
	protected String merchantId;

    /** 会员ID */
	@ApiModelProperty("会员ID")
	protected String memberId;

    /** 券包模板ID */
	@ApiModelProperty("券包模板ID")
	protected String couponPackageTemplateId;

    /** 获取时间 */
	@ApiModelProperty("获取时间")
	protected LocalDateTime createdTime;

	/**
	 * 构造一个空券包（会员券包，不冗余券包模板信息，请使用1+N模式查询）实体对象
	 */
	public CouponPackageEntity(){
		super();
	}

	/**
	 * 依据其它对象的信息构造一个券包（会员券包，不冗余券包模板信息，请使用1+N模式查询）实体对象
	 * 
	 * @param other 其它对象
	 */
	public CouponPackageEntity(CouponPackageEntity other){
		super();
     	this.id = other.id;
     	this.ownerType = other.ownerType;
     	this.groupId = other.groupId;
     	this.businessDistrictId = other.businessDistrictId;
     	this.merchantId = other.merchantId;
     	this.memberId = other.memberId;
     	this.couponPackageTemplateId = other.couponPackageTemplateId;
     	this.createdTime = other.createdTime;
	}


	/**
	 * 获取券包ID
	 * 
	 * @return id 券包ID
	 */
	public String getId() {
    	return id;
    }
  	
	/**
	 * 设置券包ID
	 * 
	 * @param id 券包ID
	 */
	public void setId(String id) {
    	this.id = id;
    }

	/**
	 * 获取举]所有者类型(把券包交给会员之前的所有者)
	 * 
	 * @return ownerType 举]所有者类型(把券包交给会员之前的所有者)
	 */
	public OwnerType getOwnerType() {
    	return ownerType;
    }
  	
	/**
	 * 设置举]所有者类型(把券包交给会员之前的所有者)
	 * 
	 * @param ownerType 举]所有者类型(把券包交给会员之前的所有者)
	 */
	public void setOwnerType(OwnerType ownerType) {
    	this.ownerType = ownerType;
    }

	/**
	 * 获取集团ID
	 * 
	 * @return groupId 集团ID
	 */
	public String getGroupId() {
    	return groupId;
    }
  	
	/**
	 * 设置集团ID
	 * 
	 * @param groupId 集团ID
	 */
	public void setGroupId(String groupId) {
    	this.groupId = groupId;
    }

	/**
	 * 获取商圈ID
	 * 
	 * @return businessDistrictId 商圈ID
	 */
	public String getBusinessDistrictId() {
    	return businessDistrictId;
    }
  	
	/**
	 * 设置商圈ID
	 * 
	 * @param businessDistrictId 商圈ID
	 */
	public void setBusinessDistrictId(String businessDistrictId) {
    	this.businessDistrictId = businessDistrictId;
    }

	/**
	 * 获取商户ID
	 * 
	 * @return merchantId 商户ID
	 */
	public String getMerchantId() {
    	return merchantId;
    }
  	
	/**
	 * 设置商户ID
	 * 
	 * @param merchantId 商户ID
	 */
	public void setMerchantId(String merchantId) {
    	this.merchantId = merchantId;
    }

	/**
	 * 获取会员ID
	 * 
	 * @return memberId 会员ID
	 */
	public String getMemberId() {
    	return memberId;
    }
  	
	/**
	 * 设置会员ID
	 * 
	 * @param memberId 会员ID
	 */
	public void setMemberId(String memberId) {
    	this.memberId = memberId;
    }

	/**
	 * 获取券包模板ID
	 * 
	 * @return couponPackageTemplateId 券包模板ID
	 */
	public String getCouponPackageTemplateId() {
    	return couponPackageTemplateId;
    }
  	
	/**
	 * 设置券包模板ID
	 * 
	 * @param couponPackageTemplateId 券包模板ID
	 */
	public void setCouponPackageTemplateId(String couponPackageTemplateId) {
    	this.couponPackageTemplateId = couponPackageTemplateId;
    }

	/**
	 * 获取获取时间
	 * 
	 * @return createdTime 获取时间
	 */
	public LocalDateTime getCreatedTime() {
    	return createdTime;
    }
  	
	/**
	 * 设置获取时间
	 * 
	 * @param createdTime 获取时间
	 */
	public void setCreatedTime(LocalDateTime createdTime) {
    	this.createdTime = createdTime;
    }

    public String toString() {
		return new StringBuilder().append("CouponPackageEntity{").
			append("id=").append(id).
			append(",ownerType=").append(ownerType).
			append(",groupId=").append(groupId).
			append(",businessDistrictId=").append(businessDistrictId).
			append(",merchantId=").append(merchantId).
			append(",memberId=").append(memberId).
			append(",couponPackageTemplateId=").append(couponPackageTemplateId).
			append(",createdTime=").append(createdTime).
			append('}').toString();
    }

	/**
	 * 复制对象
	 * 
	 * @return 复制后的新实体对象
	 */
	public CouponPackageEntity copy() {
		return new CouponPackageEntity(this);
	}

    /** 券包ID */
	public static final String COL_ID = "id";

    /** 举]所有者类型(把券包交给会员之前的所有者) */
	public static final String COL_OWNER_TYPE = "ownerType";

    /** 集团ID */
	public static final String COL_GROUP_ID = "groupId";

    /** 商圈ID */
	public static final String COL_BUSINESS_DISTRICT_ID = "businessDistrictId";

    /** 商户ID */
	public static final String COL_MERCHANT_ID = "merchantId";

    /** 会员ID */
	public static final String COL_MEMBER_ID = "memberId";

    /** 券包模板ID */
	public static final String COL_COUPON_PACKAGE_TEMPLATE_ID = "couponPackageTemplateId";

    /** 获取时间 */
	public static final String COL_CREATED_TIME = "createdTime";
}
